const sqlite = @import("sqlite");

pub fn OpenDb() !sqlite.Db {
    const db = try sqlite.Db.init(.{
        .mode = sqlite.Db.Mode{ .File = "db_zigblog.db" },
        .open_flags = .{
            .write = true,
            .create = false,
        },
        .threading_mode = .MultiThread,
    });

    return db;
}
